/**
 * AndTinder v0.1 for Android
 *
 * @Author: Enrique López Mañas <eenriquelopez@gmail.com>
 * http://www.lopez-manas.com
 * <p>
 * TAndTinder is a native library for Android that provide a
 * Tinder card like effect. A card can be constructed using an
 * image and displayed with animation effects, dismiss-to-like
 * and dismiss-to-unlike, and use different sorting mechanisms.
 * <p>
 * AndTinder is compatible with API Level 13 and upwards
 * @copyright: Enrique López Mañas
 * @license: Apache License 2.0
 */

package com.breezelin.card.adapterview.model;

public class Orientations {
	public enum Orientation {
		Ordered, Disordered, Lined;

		public static Orientation fromIndex(int index) {
			Orientation[] values = Orientation.values();
			if (index < 0 || index >= values.length) {
				throw new IndexOutOfBoundsException();
			}
			return values[index];
		}
	}
}
